package com.mg.admin.dao.admin;

import com.mg.admin.annotation.MyBatis;
import com.mg.admin.bean.admin.ResourceVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

@MyBatis
public interface ResourceMapper {
    List<ResourceVO> findById(@Param("resIds") String resourceId);

    Set<String> findPermissionsById(@Param("resIds") String resourceIds);

    List<ResourceVO> findByParentId(@Param("id") Long id);

    ResourceVO findOne(Long id);

    void insertOne(ResourceVO resourceVO);

    void updateOne(ResourceVO resourceVO);

    void delete(Long id);
}
